namespace 项目1;

class Student
{
    public string name;
    public string id;
    public string gender;
    public int age;

    public 手机 phone;
    public string GetInfo()
    {
        return $"姓名:{name}\n身份证:{id}\n性别:{gender}\n年龄:{age}\n号码{phone.号码}\n型号{phone.型号}\n";
    }
    public Student(string 姓名, string 身份证, string 性别, int 年龄, string 手机型号, string 手机号码)
    {
        name = 姓名;
        id =身份证;
        gender = 性别;
        age = 年龄;
        phone =new 手机(姓名,手机型号,手机号码);

    }

}